
:root {
  --bg: #F6F8FC;
  --primary: #705CFF;
  --secondary: #705CFF60;
  --h2-color: #5B5D72;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::selection {
  background: var(--primary);
  color: var(--white);
}

body {
  background: var(--bg);
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif; 
  flex-direction: column;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 7rem;
}

.items {
    display: grid;
    margin: 0 auto;
    grid-template-columns: 6.5rem 6.5rem 6.5rem;
    grid-template-rows: 8rem 8rem;
    gap: 2rem;
    align-items: center;
}

.item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 4.5rem
}

h1 {
  color: var(--h2-color);
  margin-top: 0;
  margin-bottom: 0.125rem;
}

.emph {
  color: #705CFF;
}

.code-comments {
  white-space: nowrap;
  color: var(--h2-color);
  font-weight: 500;
  font-size: 1.25rem;
}

.cta-text {
  color: var(--h2-color);
  font-weight: 500;
  font-size: 0.75rem;
}

.top-bar {
  display: flex;
  justify-content: space-between;
}

.profile {
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: cover;
}

.profile-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.modern-frontend-developer {
  max-width: 12rem; 
}

.learning-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #705CFF;
}

.learning-link img {
  width: 2rem;
  height: 2rem;
}

.ck-1 {
  appearance: none;
  width: 33px;
  height: 33px;
  border-radius: 5px;
  background: var(--white);
  border: 2px solid var(--primary);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
}

.ck-1::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: 0 0 0 calc(2rem / 2.5) var(--primary);
  border-radius: inherit;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.ck-1::before {
  top: 45%;
  left: 50%;
  content: "";
  position: absolute;
  width: 7px;
  height: 14px;
  border-right: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  opacity: 0;
  transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6),opacity 0.1s;
}

.ck-1:hover {
  border-color: var(--primary);
}

.ck-1:checked {
  background: var(--primary);
  border-color: transparent;
}

.ck-1:checked::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
  transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
}

.ck-1:active:not(:checked)::after {
  box-shadow: none;
  transition: none;
  opacity: 1;
}

.ck-2 {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ck-2 input {
  display: none;
}

.ck-2 svg {
  overflow: visible;
}

.ck-2 .path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
  stroke-dasharray: 241 9999999;
  stroke-dashoffset: 0;
}

.ck-2 input:checked ~ svg .path {
  stroke-dasharray: 70.5096664428711 9999999;
  stroke-dashoffset: -262.2723388671875;
}


.ck-3 input[type="checkbox"] {
  display: none;
}

.ck-3 label {
  align-items: center;
  cursor: pointer;
  display: flex;
}

.ck-3 label span {
  margin-left: 8px;
}

.ck-3 svg {
  height: 30px;
  width: 30px;
}

.ck-3 svg > rect {
  fill: var(--white);
  stroke: var(--primary);
  stroke-dasharray: 400%;
  stroke-dashoffset: 400%;
  transition: 0.3s stroke-dashoffset ease-in-out;
}

.ck-3 svg path {
  stroke: var(--primary);
  stroke-dasharray: 100%;
  stroke-dashoffset: 100%;
  transition: 0.3s stroke-dashoffset ease-in-out;
}

.ck-3 input[type="checkbox"]:checked + label svg > rect,
.ck-3 input[type="checkbox"]:checked + label svg path {
  stroke-dashoffset: 0;
}


.ck-4 label {
  display: block;
  width: 32px;
  height: 32px;
  border: 2px solid  var(--primary);
  cursor: pointer;
}

.ck-4 input {
  visibility: hidden;
  display: none;
}

.ck-4 input:checked ~ .checkbox {
  transform: rotate(45deg);
  width: 10px;
  translate: 9px -4px;
  border-color: var(--primary);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 0;
}

.ck-4 .checkbox {
  display: block;
  width: 18px;
  height: 28px;
  border: 2.5px solid rgb(255 255 255 / 10%);
  border-radius: 2px;
  transition: all 0.375s;
}


.ck-5 {
  scale: 1.4;
  translate: 0 5px;
}

.ck-5 .cbx {
  user-select: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: inline-block;
  scale: 1.2;
}

.ck-5 .cbx span {
  float: left;
  vertical-align: middle;
  transform: translate3d(0, 0, 0);
}

.ck-5 .cbx span:first-child {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 3px;
  border:  1.5px solid var(--primary);
  transform: scale(1);
  transition: all 0.2s ease;
}

.ck-5 .cbx span:first-child svg {
  position: absolute;
  top: 3.5px;
  left: 2.5px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18px;
  stroke-dashoffset: 18px;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
  transform: translate3d(0, 0, 0);
}

.ck-5 .cbx span:last-child {
  padding-left: 8px;
  line-height: 18px;
}

.ck-5 .cbx:hover span:first-child {
  border-color: var(--primary);
}

.ck-5 .inp-cbx {
  position: absolute;
  visibility: hidden;
}

.ck-5 .inp-cbx:checked + .cbx span:first-child {
  background: var(--primary);
  border-color: var(--primary);
  animation: anim 0.4s ease;
}

.ck-5 .inp-cbx:checked + .cbx span:first-child svg {
  stroke-dashoffset: 0;
}

.ck-5 .inline-svg {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  user-select: none;
}

@keyframes anim {
  50% {
    transform: scale(0.85);
  }
}

.ck-6 {
  height: 42px;
}

.ck-6 .checkbox {
  --border-color: var(--white);
  --border-active-color: var(--primary);
  display: inline-block;
  width: 32px;  
  position: relative;
  background: var(--white);
  border-radius: 6px;
}

.ck-6 .checkbox:after {
  content: "";
  width: 100%;
  padding-top: 100%;
  display: block;
}

.ck-6 path {
  stroke: var(--primary);
}

.ck-6 .checkbox > * {
  position: absolute;
}

.ck-6 .checkbox input {
  appearance: none;
  cursor: pointer;
  background: transparent;
  border-radius: 6px;
  border: 1.4px solid;
  color: var(--border-color);
  outline: none;
  margin: 0;
  padding: 0;
  transition: all 0.3s linear;
}

.ck-6 .checkbox input:hover,
.ck-6 .checkbox input:checked {
  border: 2px solid;
}

.ck-6 .checkbox input:checked {
  color: var(--primary);
  transition-delay: calc(0.6s / 1.3);
}


.ck-6 .checkbox input:checked + svg {
  stroke-dasharray: 16 93;
  stroke-dashoffset: 109;
}

.ck-6 .checkbox svg {
  fill: none;
  left: 0;
  pointer-events: none;
  stroke: var(--primary);
  stroke-dasharray: 93;
  stroke-dashoffset: 94;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  top: 0;
  transition: stroke-dasharray 0.6s, stroke-dashoffset 0.6s;
}

.ck-6 .checkbox svg,
.ck-6 .checkbox input {
  display: block;
  height: 100%;
  width: 100%;
}